#ifndef SECTION_H
#define SECTION_H

#include <QDialog>
#include "datebase.h"
#include <QPaintEvent>
#include <QPainter>
#include <QMessageBox>

namespace Ui {
    class Section;
}

class Section : public QDialog
{
    Q_OBJECT

public:
    explicit Section(datebase *db,int ID,QWidget *parent = 0);
    ~Section();
    void paintEvent(QPaintEvent *);
private:
    Ui::Section *ui;
    datebase *Section_db;
    int Section_ID;


private slots:
    void on_pushButton_OK_clicked();
    void on_pushButton_Quit_clicked();
    void  GetSectionInfo();
};

#endif // SECTION_H
